# coding = utf-8

from django.urls import path
from rest_framework.routers import DefaultRouter

from cards.api.views import CardViewSet, CustomerCardViewSet, CardListAPIView

router = DefaultRouter()
# 后台
router.register(r'card', CardViewSet, basename="api-card")
router.register(r'customer_card', CustomerCardViewSet, basename="api-customer-card")

urlpatterns = [
    # 编码
    path('card_list/', CardListAPIView.as_view(), name="api-card-list"),


]
urlpatterns += router.urls
